import request from '@/utils/request'

// 查询教案生成列表
export function listJiaoan(query) {
  return request({
    url: '/system/jiaoan/list',
    method: 'get',
    params: query
  })
}

// 查询教案生成详细
export function getJiaoan(id) {
  return request({
    url: '/system/jiaoan/' + id,
    method: 'get'
  })
}

// 新增教案生成
export function addJiaoan(data) {
  return request({
    url: '/system/jiaoan',
    method: 'post',
    data: data
  })
}

// 修改教案生成
export function updateJiaoan(data) {
  return request({
    url: '/system/jiaoan',
    method: 'put',
    data: data
  })
}

// 删除教案生成
export function delJiaoan(id) {
  return request({
    url: '/system/jiaoan/' + id,
    method: 'delete'
  })
}
